$(function(){
	
	function isIE() {
	    if (!!window.ActiveXObject || "ActiveXObject" in window){
	        return true;
	     }else{         
	     	return false;    
	     }
	}
	if(isIE()){
		$(".footerTitle").css("width","10%");
		$($(".footerTitle").last().find(".footerList")[0]).css("marginRight","45px");
		$(".footerTitle").last().css("width","30%");
		$(".navTitle").css("width","9.97%")
	}
	var bgI = ["images/banner1.jpg","images/banner2.jpg","images/banner1.jpg","images/banner2.jpg","images/banner1.jpg","images/banner2.jpg"];//首页banner背景图
	var friendImg = ["http://www.nhfoundation.cn/images/1.png","http://www.nhfoundation.cn/images/2.png","http://www.nhfoundation.cn/images/3.png","http://www.nhfoundation.cn/images/4.png","http://www.nhfoundation.cn/images/5.png","http://www.nhfoundation.cn/images/6.png","http://www.nhfoundation.cn/images/7.png","http://www.nhfoundation.cn/images/8.jpg","http://www.nhfoundation.cn/images/9.jpg"];//合作伙伴背景图
	//合作伙伴
	var friendHtml = '';
	var xinzengHtml = '';
	for(var i=0;i<friendImg.length-2;i++){
		friendHtml+='<li style="float: left;"><img src="'+friendImg[i]+'" /></li>';
	}
	for(var i=friendImg.length-2;i<friendImg.length;i++){
		xinzengHtml+='<img src="'+friendImg[i]+'" />';
	}
	$(".xinzeng").html(xinzengHtml);
	$('.friend ul').html(friendHtml);
	var onOff = true;

		$('.report ul li div').css("lineHeight",$('.report ul li div').height()+"px");
//		$('.bannerSix div').css("opacity","0");
//		$($('.bannerSix div')[0]).css("opacity","1")
		
	//导航的移入变色
	$('#cl-effect-11 .navTitle').mousemove(function(){
		$(this).css("background","rgba(0,0,0,.5)");
		if($(this).index()==4){
			$(this).css("background","");
		}
	});
	//banner图上的6个方块
	$('.logo-text a').mousemove(function(){
		$('.bannerSix div').css("opacity","0");
		$($('.bannerSix div')[$(this).index()]).css({
			"opacity" : "1",
			"background-size" : "100% 100%"
		})
	})
	//鼠标移出颜色小时
	$('#cl-effect-11 li').mouseout(function(){
		$(this).css("background","")
	});
	//六方块的高
	$('.logo-text').css('height',$(window).height()-$('#cl-effect-11').height());
	$('.search').click(function(){
		$(this).css({
			"background" : "rgba(0,0,0,.5)"
		});
		$(this).find('div').show();
		return false;
	});
	//点击文档让search内容隐藏
	$(document).click(function(){
		$('.search div').hide();
		$('.search div input').val('');
		$('.search').css({
			"background" : ""
		});
	});
	//导航移入展示下拉菜单
	$('.navTitle').mouseover(function(){
		$(this).find('.navList').show()
	});
	$('.navTitle').mouseout(function(){
		$(this).find('.navList').hide()
	});
	
})
